package com.hm.common.plugin.oss;

import com.hm.common.autoconfigure.CommonProperties;
import com.hm.common.plugin.oss.qiniu.QiNiuCloudPlugin;
import lombok.Setter;

/**
 * @author shishun.wang
 * @version 1.0
 * @date 2019/4/11 15:38
 * @describe
 */
public class OssCloudFactory {

	public static enum OssCloudType{
		
		QI_NIU , ALi_CLOUD
	}
	
	public static OssCloudAbs getOssCloud(OssCloudType cloudType,CommonProperties commonProperties){
		switch (cloudType){
			case QI_NIU:
				return new QiNiuCloudPlugin(commonProperties);
			case ALi_CLOUD:
				break;
		}
		return null;
	}
}
